<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		<h1>[name]</h1>

		<div class="desc">
			The AnimationMixer is a player for animations on a particular object in the scene. When
			multiple objects in the scene are animated independently, one AnimationMixer may be used for
			each object.<br /><br />

			For an overview of the different elements of the three.js animation system see the
			"Animation System" article in the "Next Steps" section of the manual.
		</div>


		<h2>Constructor</h2>


		<h3>[name]( [page:Object3D rootObject] )</h3>
		<div>
			[page:Object3D rootObject] - the object whose animations shall be played by this mixer.<br />
		</div>


		<h2>Properties</h2>


		<h3>[property:Number time]</h3>
		<div>
			The global mixer time (in seconds; starting with 0 on the mixer's creation).
		</div>

		<h3>[property:Number timeScale]</h3>
		<div>
			A scaling factor for the global [page:.time mixer time].<br /><br />

			Note: Setting the mixer's timeScale to 0 and later back to 1 is a possibility to pause/unpause
			all actions that are controlled by this mixer.
		</div>


		<h2>Methods</h2>


		<h3>[method:AnimationAction clipAction]([page:AnimationClip clip], [page:Object3D optionalRoot])</h3>
		<div>
			Returns an [page:AnimationAction] for the passed clip, optionally using a root object different
			from the mixer's default root. The first parameter can be either an [page:AnimationClip] object
			or the name of an AnimationClip.<br /><br />

			If an action fitting these parameters doesn't yet exist, it will be created by this method.<br /><br />

			Note: Calling this method several times with the same parameters returns always the same clip 
			instance.
		</div>

		<h3>[method:AnimationAction existingAction]([page:AnimationClip clip], [page:Object3D optionalRoot])</h3>
		<div>
			Returns an existing [page:AnimationAction] for the passed clip, optionally using a root object
			different from the mixer's default root.<br /><br />

			The first parameter can be either an [page:AnimationClip] object or the name of an AnimationClip.
		</div>

		<h3>[method:Object3D getRoot]()</h3>
		<div>
			Returns this mixer's root object.
		</div>

		<h3>[method:AnimationMixer stopAllAction]()</h3>
		<div>
			Deactivates all previously scheduled actions on this mixer.
		</div>

		<h3>[method:AnimationMixer update]([page:Number deltaTimeInSeconds]) </h3>
		<div>
			Advances the global mixer time and updates the animation.<br /><br />

			This is usually done in the render loop, passing [page:Clock.getDelta clock.getDelta] scaled by the mixer's [page:.timeScale timeScale]).
		</div>

		<h3>[method:null uncacheClip]([page:AnimationClip clip])</h3>

		<div>
			Deallocates all memory resources for a clip.
		</div>

		<h3>[method:null uncacheRoot]([page:Object3D root]) </h3>
		<div>
			Deallocates all memory resources for a root object.
		</div>

		<h3>[method:null uncacheAction]([page:AnimationClip clip], [page:Object3D optionalRoot])</h3>
		<div>
			Deallocates all memory resources for an action.
		</div>


		<h2>Source</h2>


		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html>
